package com.ccb.sc.common.modules.shopkeeper.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ccb.sc.common.entity.BaseEntity;
import com.ccb.sc.common.modules.shopkeeper.enums.ApplyStatus;
import com.ccb.sc.common.modules.shopkeeper.enums.ShopkeeperLevel;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 店主申请记录
 * </p>
 *
 * @author ken
 * @since 2023-02-12
 */
@Getter
@Setter
@TableName("tb_shopkeeper_apply")
public class ShopkeeperApply extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 店主id
     */
    @TableField("shopkeeper_id")
    private Long shopkeeperId;

    /**
     * 申请店主等级：1优秀店主 2卓越店主 3合伙人
     */
    @TableField("level")
    private ShopkeeperLevel level;

    /**
     * 申请理由
     */
    @TableField("reason")
    private String reason;

    /**
     * 申请证明
     */
    @TableField("picture")
    private String picture;

    /**
     * 团队人数
     */
    @TableField("team")
    private Integer team;

    /**
     * 团队订单金额
     */
    @TableField("total_amount")
    private BigDecimal totalAmount;

    /**
     * 审核状态 0待审核 1审核成功 2审核拒绝
     */
    @TableField("status")
    private ApplyStatus status;

    /**
     * 审核意见
     */
    @TableField("audit_comment")
    private String auditComment;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private LocalDateTime auditTime;


}
